//
//  TestViewController.m
//  JKProgressCircle
//
//  Created by 王冲 on 2018/11/23.
//  Copyright © 2018年 JK科技有限公司. All rights reserved.
//

#import "TestViewController.h"

#import "JKProgressCircle.h"

#define zhuBlueCOLOR [UIColor colorWithRed:(0)/255.0 green:(150)/255.0 blue:(255)/255.0 alpha:1]
#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]

@interface TestViewController ()
{
    
}

@property(nonatomic,strong) JKProgressCircle *circleView;


@end

@implementation TestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    
    float value =  0.4;
    
    //创建控件
    /**
     gary：225 227 237
     yellow：215 171 112
     blue：0 150 255
     */
    self.circleView = [[JKProgressCircle alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width/2.0-100, 200, 200, 200)];
    self.circleView.progerssBackgroundColor = RGBCOLOR(225,227,237);
    self.circleView.progerWidth = 20;
    self.circleView.progressValue = value;
    self.circleView.progerssColor = zhuBlueCOLOR;
    self.circleView.percentageFontSize = 50;
    self.circleView.percenTageFontColor = [UIColor purpleColor];
    self.circleView.progerssDirection = YES;
    //self.circleView.isDCGTimerOpen = YES;
    [self.view addSubview:self.circleView];
}

@end
